package com.yh.csx.event.common.exception;

import com.yh.csx.business.api.exception.BusinessException;
import com.yh.csx.business.api.exception.ExceptionDetails;

/**
 * @author zhangsheng
 * @date 2021/7/29 18:05
 */
public class EventException extends BusinessException {
    public EventException(ExceptionDetails details) {
        super(details);
    }

    public EventException(ExceptionDetails details, Throwable cause) {
        super(details, cause);
    }

    public EventException(ExceptionEnum type, String... key) {
        super(ExceptionDetails.createBuilder(type.getCode(), type.format(key)).build());
    }
}
